<?php
$account_id = $this->session->userdata('doggy.id');
$account_name = $this->session->userdata('account_name');
//print_r($requests);
?>
<div id="nouveaux_membres">
<div class="titre_home" style="text-transform: uppercase;">Demande d'ajout à la liste des amis</div>
<table width="100%" class="list">
        <?php foreach ($requests as $aRow): ?>
            <?php 
                    $image_ava = './doggy_avatar/images/' . $aRow['avatar'];
                    if(file_exists($image_ava)&& $aRow['avatar']!=null){
                        $image_ava = base_url() . 'doggy_avatar/images/' . $aRow['avatar'];
                    } else{
                        $image_ava = base_url() . 'assets/noimage.gif';
                }?>
            <tr>
                <td align="center"><div align="center" style="width: 50px;height: 50px;background: transparent"><img src="<?php echo $image_ava;?>" align="middle" border="0" style="max-width: 50px;max-height: 50px" alt=""/></td>
                <td width="50%" style="padding-left: 20px;"><span class="noun"><?php echo $aRow['display_name']; ?></span></td>
                <td width="30%" align="center"><a href="<?php echo site_url('friend/send_friend_request/' . $aRow['id']); ?>">Confirmer la demande</a></td>
            </tr>
        <?php endforeach; ?>
            </table>
    <div align="center"><font color="#5d94c5" style="font-size: normal;"><?php if(isset($pagination)){echo $pagination;} ?></font></div> 
</div>
<!--END wrapper-content-->
